package edu.sctu.xialei.May.day20150521one;

/**
 * Created by Administrator on 5/21/2015.
 */
public class MainCall {

    public static void main(String[] args) {
        TeacherData[] teachers;

        SettingAllInfo settingAllInfo = new SettingAllInfo();

        settingAllInfo.setTeacher1();
        settingAllInfo.setTeacher2();
        settingAllInfo.setTeacher3();

        teachers = settingAllInfo.teachers;

        DatasDealling datasDealling = new DatasDealling();

        System.out.println("\n\n****所有老师信息****");
        datasDealling.printTeacherDatas(teachers);

        System.out.println("\n\n****老师排序后信息****");
        datasDealling.printTeacherDatas(datasDealling.sortTeacherNumber(teachers));

        System.out.println("\n\n****教授老师信息****");
        datasDealling.printTeacherDatas(datasDealling.checkTitleOfProfessor(teachers));

        float code = 60;
        System.out.println("\n\n****学生成绩大于 " + code + " 的学生");
        datasDealling.pinttingStudentData(datasDealling.checkStudentGrade(teachers,code));

        System.out.println("\n\n****教授学生成绩大于" + code + "的学生");
        datasDealling.pinttingStudentData(datasDealling.checkStudentGrade(datasDealling.checkTitleOfProfessor(teachers),code));

        System.out.println("\n\n\n****判断哪门学科人数最多，并输出信息****");
        datasDealling.printtingMostCourseStudent(datasDealling.checkCourse(teachers));

    }
}
